<html xmlns="http://www.w3.org/1999/xhtml">
    {% include "head.html" %}
    <body>
        <div id="mainFrame">                   
                {% include "topframe.html" %}

                <h3><img src="/search.gif" class="icon" /> filter by tags:</h3>
                <a href="/">all</a> |
                {% for tag in tags %} <a href="/filter/{{ tag.text }}">{{ tag.text }}</a>
                    {% if not forloop.last %} | {% endif %}
                {% endfor %}
	            <br />
	            <br />
	             {% if form %}
	            <h3><img src="/plus.gif" class="icon" /> add something:</h3>
	            {% include "addBox.html" %}
	            {% endif %}
	            <div id="contFrame">
	                <h2><img src="/folder-open.gif" class="icon" /> your notes </h2>
	
	                {% for note in notes %}	
	                   {% include "note.html" %}	
	                {% endfor %}
	
	                <br/>
	                <p align="center"> 
		                 {% if has_prev %} <a href="{{ prev }}">previous</a> |{% endif %} 
		                 {% if next %} <a href="{{ next }}">next</a> {% endif %}
	                 </p>
	                <br/>
	                {% include "foot.html" %}
	            </div>
            </div>
        </div>
    </body>
</html>
